#ifndef __FONT_H__
#define __FONT_H__

#include "stdint.h"

/*
国内全球疫情现存累计确诊治愈重症死亡较昨日：更新于
*/

/* 阴码，逐行，顺向 */

/* 顶部工具栏 */
const uint8_t ICON_BAR[640] =
{
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0xFF, 0x7F, 0xFF, 0x7F, 0xFF, 0x7F, 0xFF, 0x7F, 0xFF, 0x7D, 0xCF, 0x78, 0x8F, 0x7C, 0x1F, 0x7E, 0x1F, 0x7C, 0x1F, 0x78, 0x8F, 0x7D, 0xCF,
    0x7F, 0xFF, 0x7F, 0xFF, 0x7F, 0xFF, 0x7F, 0xFF, 0x3F, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0xFE, 0x3F, 0xFF, 0x7F, 0xFF, 0x7F, 0x3F,
    0x7F, 0x3F, 0x7F, 0x3F, 0x7F, 0x3F, 0x7F, 0x3F, 0x7F, 0x3F, 0x7F, 0x3F, 0x7F, 0x3F, 0x7F, 0x3F, 0x3F, 0xFF, 0x3F, 0xFF, 0x1F, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x3F, 0xFF, 0x7F, 0xFF, 0x7F, 0xFF, 0x7E, 0x03, 0x7E, 0x03, 0x7E, 0x03, 0x7E, 0x03, 0x7E, 0x03, 0x7E, 0x03, 0x7E, 0x03, 0x7E, 0x03, 0x7E, 0x03, 0x7E, 0x03, 0x7E, 0x03, 0x7F, 0xFF,
    0x7F, 0xFF, 0x3F, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x3F, 0x0F, 0x3E, 0x1F, 0x3E, 0x3C, 0x3E, 0x38, 0x37, 0x38, 0x27, 0x70, 0x03, 0x70, 0x03,
    0x30, 0x07, 0x3B, 0x07, 0x3F, 0x0F, 0x1F, 0x1E, 0x1F, 0x3C, 0x3F, 0x38, 0x3F, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xF0, 0x0F, 0xFC, 0x1F, 0xFE,
    0x3F, 0xFE, 0x3D, 0xFF, 0x39, 0xFF, 0x73, 0x93, 0x73, 0x13, 0x31, 0x3F, 0x38, 0x7F, 0x3C, 0xFF, 0x1F, 0xFE, 0x0F, 0xFC, 0x07, 0xF8, 0x01, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3B, 0xFE, 0x3D, 0xFE, 0x3E, 0xFE, 0x3F, 0x7E, 0x3F, 0x7E, 0x3F, 0xBE, 0x3F, 0xDE, 0x3F, 0xDE, 0x3F, 0xDE, 0x3F, 0xDE,
    0x3F, 0xDE, 0x3F, 0xBE, 0x3F, 0x7E, 0x3F, 0x7E, 0x3E, 0xFE, 0x3D, 0xFE, 0x3B, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x08, 0x0E, 0x18, 0x07, 0x38,
    0x03, 0xF0, 0x7F, 0xFF, 0x7F, 0xFF, 0x39, 0xE6, 0x1F, 0x3C, 0x0E, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x07, 0xE0, 0x07, 0xE0, 0x07, 0xE0, 0x07, 0xE0, 0x0F, 0xF0, 0x1F, 0xF8, 0x3F, 0xFC, 0x1F, 0xF8, 0x02, 0x40, 0x03, 0xD0, 0x5B, 0xDA, 0x6C, 0x36, 0x37, 0xEC, 0x38, 0x18, 0x1F, 0xF0,
    0x07, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x0E, 0x00, 0x1E, 0x00, 0x1C, 0x80, 0x1D, 0x80, 0x39, 0x80,
    0x33, 0x30, 0x73, 0x30, 0x67, 0x76, 0x67, 0x76, 0x67, 0x76, 0x73, 0x76, 0x33, 0x30, 0x3B, 0xB0, 0x39, 0x80, 0x1C, 0x80, 0x1E, 0x00, 0x0E, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0xFC, 0x20, 0x04, 0x2F, 0xF4, 0x2F, 0xF4, 0x2F, 0xF4, 0x2F, 0xF4, 0x2F, 0xF4, 0x2F, 0xF4, 0x2F, 0xF4, 0x2F, 0xF4,
    0x2F, 0xF4, 0x20, 0x04, 0x20, 0x04, 0x20, 0x04, 0x20, 0x04, 0x20, 0x04, 0x20, 0x04, 0x20, 0x04, 0x20, 0x04, 0x3C, 0x3C, 0x3F, 0xF8, 0x07, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};

struct F16X16_TYPE
{
    const char *chn;
    const uint8_t table[32];
};

struct F16X16_TYPE FONT_16X16_TABLE[25] =
{
    {"国", {0x00, 0x00, 0x7F, 0xFC, 0x40, 0x04, 0x40, 0x04, 0x5F, 0xF4, 0x41, 0x04, 0x41, 0x04, 0x4F, 0xE4, 0x41, 0x04, 0x41, 0x44, 0x41, 0x24, 0x5F, 0xF4, 0x40, 0x04, 0x40, 0x04, 0x7F, 0xFC, 0x40, 0x04}}, /*"国",0*/
    {"内", {0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x7F, 0xFC, 0x41, 0x04, 0x41, 0x04, 0x41, 0x04, 0x42, 0x84, 0x42, 0x44, 0x44, 0x24, 0x48, 0x14, 0x50, 0x14, 0x40, 0x04, 0x40, 0x04, 0x40, 0x14, 0x40, 0x08}}, /*"内",1*/
    {"全", {0x01, 0x00, 0x01, 0x00, 0x02, 0x80, 0x04, 0x40, 0x08, 0x20, 0x10, 0x10, 0x2F, 0xE8, 0xC1, 0x06, 0x01, 0x00, 0x01, 0x00, 0x1F, 0xF0, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x7F, 0xFC, 0x00, 0x00}}, /*"全",2*/
    {"球", {0x00, 0x28, 0x00, 0x24, 0xFC, 0x24, 0x10, 0x20, 0x13, 0xFE, 0x10, 0x20, 0x11, 0x20, 0x7C, 0xB2, 0x10, 0xB4, 0x10, 0x68, 0x10, 0xA8, 0x11, 0x24, 0x1E, 0x22, 0xE0, 0x20, 0x40, 0xA0, 0x00, 0x40}}, /*"球",3*/
    {"疫", {0x00, 0x80, 0x00, 0x40, 0x1F, 0xFE, 0x10, 0x00, 0x93, 0xF0, 0x52, 0x10, 0x52, 0x10, 0x14, 0x0E, 0x38, 0x00, 0x57, 0xF8, 0x92, 0x08, 0x11, 0x10, 0x20, 0xA0, 0x20, 0x40, 0x41, 0xB0, 0x8E, 0x0E}}, /*"疫",4*/
    {"情", {0x10, 0x40, 0x10, 0x40, 0x17, 0xFC, 0x10, 0x40, 0x1B, 0xF8, 0x54, 0x40, 0x57, 0xFE, 0x50, 0x00, 0x93, 0xF8, 0x12, 0x08, 0x13, 0xF8, 0x12, 0x08, 0x13, 0xF8, 0x12, 0x08, 0x12, 0x28, 0x12, 0x10}}, /*"情",5*/
    {"现", {0x00, 0x00, 0x01, 0xFC, 0xFD, 0x04, 0x11, 0x04, 0x11, 0x24, 0x11, 0x24, 0x11, 0x24, 0x7D, 0x24, 0x11, 0x24, 0x11, 0x54, 0x10, 0x50, 0x10, 0x90, 0x1C, 0x90, 0xE1, 0x12, 0x42, 0x12, 0x04, 0x0E}}, /*"现",6*/
    {"存", {0x04, 0x00, 0x04, 0x00, 0xFF, 0xFE, 0x08, 0x00, 0x08, 0x00, 0x13, 0xF8, 0x10, 0x10, 0x30, 0x20, 0x50, 0x40, 0x97, 0xFE, 0x10, 0x40, 0x10, 0x40, 0x10, 0x40, 0x10, 0x40, 0x11, 0x40, 0x10, 0x80}}, /*"存",7*/
    {"累", {0x00, 0x00, 0x3F, 0xF8, 0x21, 0x08, 0x3F, 0xF8, 0x21, 0x08, 0x3F, 0xF8, 0x02, 0x00, 0x04, 0x20, 0x1F, 0xC0, 0x01, 0x80, 0x06, 0x10, 0x3F, 0xF8, 0x01, 0x08, 0x11, 0x20, 0x25, 0x10, 0x42, 0x08}}, /*"累",8*/
    {"计", {0x00, 0x40, 0x20, 0x40, 0x10, 0x40, 0x10, 0x40, 0x00, 0x40, 0x00, 0x40, 0xF7, 0xFE, 0x10, 0x40, 0x10, 0x40, 0x10, 0x40, 0x10, 0x40, 0x10, 0x40, 0x14, 0x40, 0x18, 0x40, 0x10, 0x40, 0x00, 0x40}}, /*"计",9*/
    {"确", {0x00, 0x40, 0x00, 0x40, 0xFC, 0x7C, 0x10, 0x84, 0x11, 0x08, 0x22, 0xFE, 0x3C, 0x92, 0x64, 0x92, 0x64, 0xFE, 0xA4, 0x92, 0x24, 0x92, 0x24, 0xFE, 0x3C, 0x92, 0x25, 0x12, 0x21, 0x0A, 0x02, 0x04}}, /*"确",10*/
    {"诊", {0x00, 0x40, 0x40, 0x40, 0x20, 0xA0, 0x21, 0x10, 0x02, 0x08, 0x04, 0x26, 0xE0, 0x40, 0x20, 0x80, 0x23, 0x10, 0x20, 0x20, 0x20, 0x40, 0x28, 0x88, 0x33, 0x10, 0x20, 0x20, 0x00, 0xC0, 0x07, 0x00}}, /*"诊",11*/
    {"治", {0x00, 0x40, 0x20, 0x40, 0x10, 0x80, 0x11, 0x10, 0x82, 0x08, 0x47, 0xFC, 0x40, 0x04, 0x10, 0x00, 0x13, 0xF8, 0x22, 0x08, 0xE2, 0x08, 0x22, 0x08, 0x22, 0x08, 0x22, 0x08, 0x23, 0xF8, 0x02, 0x08}}, /*"治",12*/
    {"愈", {0x01, 0x00, 0x02, 0x80, 0x0C, 0x60, 0x37, 0xD8, 0xC0, 0x06, 0x3E, 0x08, 0x22, 0x48, 0x3E, 0x48, 0x22, 0x48, 0x3E, 0x48, 0x22, 0x08, 0x26, 0x18, 0x01, 0x00, 0x48, 0x84, 0x48, 0x12, 0x87, 0xF2}}, /*"愈",13*/
    {"重", {0x00, 0x10, 0x00, 0xF8, 0x3F, 0x00, 0x01, 0x00, 0xFF, 0xFE, 0x01, 0x00, 0x1F, 0xF0, 0x11, 0x10, 0x1F, 0xF0, 0x11, 0x10, 0x1F, 0xF0, 0x01, 0x00, 0x3F, 0xF8, 0x01, 0x00, 0xFF, 0xFE, 0x00, 0x00}}, /*"重",14*/
    {"症", {0x00, 0x80, 0x00, 0x40, 0x1F, 0xFE, 0x10, 0x00, 0x90, 0x00, 0x5F, 0xFC, 0x50, 0x40, 0x10, 0x40, 0x32, 0x40, 0x52, 0x7C, 0x92, 0x40, 0x12, 0x40, 0x22, 0x40, 0x22, 0x40, 0x5F, 0xFE, 0x80, 0x00}}, /*"症",15*/
    {"死", {0x00, 0x00, 0xFF, 0xFC, 0x10, 0x80, 0x10, 0x80, 0x10, 0x84, 0x1E, 0x88, 0x22, 0x90, 0x22, 0xA0, 0x52, 0xC0, 0x8C, 0x80, 0x04, 0x80, 0x08, 0x84, 0x08, 0x84, 0x10, 0x84, 0x20, 0x7C, 0x40, 0x00}}, /*"死",16*/
    {"亡", {0x02, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0xFF, 0xFE, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x1F, 0xFC, 0x00, 0x00}}, /*"亡",17*/
    {"较", {0x20, 0x40, 0x20, 0x20, 0x20, 0x20, 0xFD, 0xFE, 0x40, 0x00, 0x50, 0x88, 0x91, 0x04, 0xFE, 0x02, 0x10, 0x88, 0x10, 0x88, 0x1C, 0x50, 0xF0, 0x50, 0x50, 0x20, 0x10, 0x50, 0x10, 0x88, 0x13, 0x06}}, /*"较",18*/
    {"昨", {0x01, 0x00, 0x01, 0x00, 0x79, 0x00, 0x49, 0xFE, 0x4A, 0x80, 0x4A, 0x80, 0x4C, 0x80, 0x78, 0xF8, 0x48, 0x80, 0x48, 0x80, 0x48, 0x80, 0x48, 0xFC, 0x78, 0x80, 0x48, 0x80, 0x00, 0x80, 0x00, 0x80}}, /*"昨",19*/
    {"日", {0x00, 0x00, 0x1F, 0xF0, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x1F, 0xF0, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x1F, 0xF0, 0x10, 0x10}}, /*"日",20*/
    {"：", {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00}}, /*"：",21*/
    {"更", {0x00, 0x00, 0xFF, 0xFE, 0x01, 0x00, 0x01, 0x00, 0x3F, 0xF8, 0x21, 0x08, 0x21, 0x08, 0x3F, 0xF8, 0x21, 0x08, 0x21, 0x08, 0x3F, 0xF8, 0x11, 0x00, 0x0A, 0x00, 0x06, 0x00, 0x19, 0xC0, 0xE0, 0x3E}}, /*"更",22*/
    {"新", {0x10, 0x00, 0x08, 0x04, 0x7F, 0x78, 0x00, 0x40, 0x22, 0x40, 0x14, 0x40, 0xFF, 0x7E, 0x08, 0x48, 0x08, 0x48, 0x7F, 0x48, 0x08, 0x48, 0x2A, 0x48, 0x49, 0x48, 0x88, 0x88, 0x28, 0x88, 0x11, 0x08}}, /*"新",23*/
    {"于", {0x00, 0x00, 0x3F, 0xF8, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0xFF, 0xFE, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x05, 0x00, 0x02, 0x00}}, /*"于",24*/
};

#ifdef FONT_6X8
const uint8_t F6X8[][8] =
{
    {0x30, 0x48, 0x48, 0x48, 0x48, 0x48, 0x30, 0x00}, /*"0",0*/
    {0x20, 0x60, 0x20, 0x20, 0x20, 0x20, 0x70, 0x00}, /*"1",1*/
    {0x30, 0x48, 0x08, 0x10, 0x20, 0x40, 0x78, 0x00}, /*"2",2*/
    {0x30, 0x48, 0x08, 0x30, 0x08, 0x48, 0x30, 0x00}, /*"3",3*/
    {0x10, 0x30, 0x30, 0x50, 0x50, 0x78, 0x10, 0x00}, /*"4",4*/
    {0x78, 0x40, 0x40, 0x70, 0x08, 0x08, 0x70, 0x00}, /*"5",5*/
    {0x30, 0x48, 0x40, 0x70, 0x48, 0x48, 0x30, 0x00}, /*"6",6*/
    {0x78, 0x48, 0x08, 0x10, 0x20, 0x20, 0x20, 0x00}, /*"7",7*/
    {0x30, 0x48, 0x48, 0x30, 0x48, 0x48, 0x30, 0x00}, /*"8",8*/
    {0x30, 0x48, 0x48, 0x38, 0x08, 0x48, 0x30, 0x00}, /*"9",9*/
    {0x00, 0x00, 0x20, 0x00, 0x00, 0x20, 0x00, 0x00}, /*":",10*/
    {0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, 0x00}, /*"-",11*/
    {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /*" ",12*/
};
#endif

const uint8_t F8X16[][16] =
{
    {0x00, 0x00, 0x00, 0x18, 0x24, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x24, 0x18, 0x00, 0x00}, /*"0",0*/
    {0x00, 0x00, 0x00, 0x10, 0x70, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x7C, 0x00, 0x00}, /*"1",1*/
    {0x00, 0x00, 0x00, 0x3C, 0x42, 0x42, 0x42, 0x04, 0x04, 0x08, 0x10, 0x20, 0x42, 0x7E, 0x00, 0x00}, /*"2",2*/
    {0x00, 0x00, 0x00, 0x3C, 0x42, 0x42, 0x04, 0x18, 0x04, 0x02, 0x02, 0x42, 0x44, 0x38, 0x00, 0x00}, /*"3",3*/
    {0x00, 0x00, 0x00, 0x04, 0x0C, 0x14, 0x24, 0x24, 0x44, 0x44, 0x7E, 0x04, 0x04, 0x1E, 0x00, 0x00}, /*"4",4*/
    {0x00, 0x00, 0x00, 0x7E, 0x40, 0x40, 0x40, 0x58, 0x64, 0x02, 0x02, 0x42, 0x44, 0x38, 0x00, 0x00}, /*"5",5*/
    {0x00, 0x00, 0x00, 0x1C, 0x24, 0x40, 0x40, 0x58, 0x64, 0x42, 0x42, 0x42, 0x24, 0x18, 0x00, 0x00}, /*"6",6*/
    {0x00, 0x00, 0x00, 0x7E, 0x44, 0x44, 0x08, 0x08, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x00, 0x00}, /*"7",7*/
    {0x00, 0x00, 0x00, 0x3C, 0x42, 0x42, 0x42, 0x24, 0x18, 0x24, 0x42, 0x42, 0x42, 0x3C, 0x00, 0x00}, /*"8",8*/
    {0x00, 0x00, 0x00, 0x18, 0x24, 0x42, 0x42, 0x42, 0x26, 0x1A, 0x02, 0x02, 0x24, 0x38, 0x00, 0x00}, /*"9",9*/
    {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00}, /*":",10*/
    {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /*"-",11*/
    {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} /*" ":12*/
};

#endif


